package com.rk.app.poll.client;

import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * The async counterpart of <code>PollService</code>.
 */
public interface PollServiceAsync {
	void getAllActivePolls(AsyncCallback<Poll[]> callback);

	void getAllPolls(AsyncCallback<Poll[]> callback);

	void getPoll(String id, AsyncCallback<Poll> callback);

	void getPollResponse(String id, AsyncCallback<PollResponse[]> callback);

	void savePoll(Poll poll, AsyncCallback<String> callback);

	void savePollResponse(PollResponse response, AsyncCallback<String> callback);

	void getSignInURL(String uri, AsyncCallback<String> callback);
}
